package com.cql.service.business.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cql.common.core.DO.LoginInfoDO;
import com.cql.common.utils.StringUtils;
import com.cql.mapper.LoginInfoMapper;
import com.cql.service.business.LoginInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author cql
 */
@Service
public class LoginInfoServiceImpl extends ServiceImpl<LoginInfoMapper, LoginInfoDO> implements LoginInfoService {


    @Autowired
    private LoginInfoMapper loginInfoMapper;

    @Override
    public void insertLoginInfo(LoginInfoDO loginInfo) {
        if (StringUtils.isNotNull(loginInfo)) {
            loginInfoMapper.insert(loginInfo);
        }
    }
}
